package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.MRQuestionGetListTask.MRQuestionGetListRequest;
import com.smiier.skin.net.MRQuestionGetListTask.MRQuestionGetListResponse;
import com.smiier.skin.net.entity.QuestionAnswer;
import com.smiier.skin.util.GlobalSettings;

/**
 * 病历详情（病案列表）
 * 
 * @author 杨文华
 * 
 */
public class MRQuestionGetListTask extends
		NetTask<MRQuestionGetListRequest, MRQuestionGetListResponse> {

	public static class MRQuestionGetListRequest extends ORequest {
		public long uid;
		public int pageSize;
		public String token;
		public long startQid;
		public String appname = Constant.APP_NAME;
	}

	public static class MRQuestionGetListResponse extends OResponse {
		public QuestionAnswerList Res;
	}

	public static class QuestionAnswerList implements INoProguard {
		public int Count;
		public ArrayList<QuestionAnswer> Questions;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=MR.Question.GetList";
		mRequestMethod = METHOD_GET;
	}

}
